# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Diego Galizzi <dgalizzi at gmail dot com>
# Contributor: zoulnix <http://goo.gl/HQaP>

pkgname=cimg
pkgver=3.2.4
pkgrel=1
pkgdesc="Open-source C++ toolkit for image processing"
arch=('any')
url="http://cimg.eu/"
license=('custom')
depends=('fftw' 'graphicsmagick')
source=("$pkgname-$pkgver.tar.gz::https://github.com/dtschump/CImg/archive/v.${pkgver}.tar.gz")
sha512sums=('71cbf5161a7778a14e105d8aa41bf0431303b6f4a0f4982d3788903b0505f5ae96be9515c67ea6a52e0e76fdcb25efe3cfd7684980545d078ff41e10dbb4fbb6')

package() {
  cd "${srcdir}"/CImg-v.${pkgver}
  install -d "${pkgdir}"/usr/include/CImg/plugins ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 CImg.h "${pkgdir}"/usr/include/
  install -m644 plugins/*.h "${pkgdir}"/usr/include/CImg/plugins/
  install -m644 Licence_CeCILL*_V*-en.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
}
